import gconf

class Preset:

	def __init__(self):
		self.app_dir = '/apps/equ/'
		self.gclient = gconf.client_get_default()

	def getRock(self):
		gvalue = self.gclient.get(self.app_dir+'v_rock')
		self.gclient.set_value(self.app_dir+'use_preset',"Rock")
		rock = [gv.get_int() for gv in gvalue.get_list()]
		return rock

	def getJazz(self):		
		gvalue = self.gclient.get(self.app_dir+'v_jazz')
		self.gclient.set_value(self.app_dir+'use_preset',"Jazz")
		jazz = [gv.get_int() for gv in gvalue.get_list()]
		return jazz

	def getTechno(self):
		gvalue = self.gclient.get(self.app_dir+'v_techno')
		self.gclient.set_value(self.app_dir+'use_preset',"Techno")
		techno = [gv.get_int() for gv in gvalue.get_list()]
		return techno

	def getFlat(self):		
		gvalue = self.gclient.get(self.app_dir+'v_flat')
		self.gclient.set_value(self.app_dir+'use_preset',"Flat")
		flat = [gv.get_int() for gv in gvalue.get_list()]
		return flat

	def getCurrentPreset(self):
		return self.gclient.get_value(self.app_dir+'use_preset')
		

